.game-map {
    position: relative;
    width: 100%;
    height: 600px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.map-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-connection {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}

.map-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.map-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.node-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.node-type-encounter .node-icon {
    background: #FFD700;
}

.node-type-shop .node-icon {
    background: #4CAF50;
}

.node-type-battle .node-icon {
    background: #FF4444;
}

.node-type-event .node-icon {
    background: #2196F3;
}

.node-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-node:hover .node-tooltip {
    opacity: 1;
}

.character-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFF;
    border-radius: 50%;
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

.map-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.game-map {
    position: absolute;
    transform-origin: center center;
    transition: transform 0.1s ease;
}

.loading-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    z-index: 100;
}

.node-type-boss .node-icon {
    background: #FF0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* 修改行动面板样式 */
.action-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.character-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

.current-character {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #FFD700;
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-bar {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.hp-fill {
    background: linear-gradient(to right, #ff4444, #ff6b6b);
}

.mp-fill {
    background: linear-gradient(to right, #4444ff, #6b6bff);
}

.exp-fill {
    background: linear-gradient(to right, #44ff44, #6bff6b);
}

.stat-bar span {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 15px;
    font-size: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.character-buffs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 行动列表样式 */
.action-list-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.action-list-section h3 {
    margin: 0 0 1rem 0;
    color: #FFD700;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.action-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.action-name {
    flex: 1;
}

.action-cost {
    font-size: 0.8rem;
    color: #aaa;
}

/* 角色列表模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.character-list {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.character-item {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.character-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.character-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.character-item span {
    color: white;
    font-size: 0.9rem;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.notification.success {
    background: rgba(76, 175, 80, 0.8);
}

.notification.info {
    background: rgba(33, 150, 243, 0.8);
}

/* 可移动节点高亮 */
.map-node.available {
    background: rgba(76, 175, 80, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* 确保行动列表和节点行动都显示 */
.action-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-list-section, .action-section {
    flex-shrink: 0;
}

.action-section {
    flex: 1;
    overflow-y: auto;
}

/* 添加滚动条样式 */
.action-section::-webkit-scrollbar {
    width: 8px;
}

.action-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.action-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.game-area {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.action-panel {
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

/* 美化行动按钮 */
.action-btn {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    flex: 1;
    text-align: left;
}

/* 商店样式优化 */
.shop-modal .shop-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-content h2 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.shop-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.shop-item .item-info h3 {
    color: #FFD700;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.shop-item .item-info p {
    color: #ccc;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.shop-item .item-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-content .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.shop-content .close-btn:hover {
    opacity: 1;
}

/* 节点动作卡片样式 */
.action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #FFD700;
    margin: 0 0 0.5rem 0;
}

.node-desc {
    color: #fff;
    margin: 0.5rem 0;
}

.enemy-list, .reward-text {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.warning-text {
    color: #ff4444;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 特殊按钮样式 */
.battle-btn {
    background: linear-gradient(to right, #ff4444, #ff6b6b);
}

.shop-btn {
    background: linear-gradient(to right, #4CAF50, #45a049);
}

.encounter-btn {
    background: linear-gradient(to right, #FFD700, #FFA000);
}

.event-btn {
    background: linear-gradient(to right, #2196F3, #1976D2);
}

.boss-btn {
    background: linear-gradient(to right, #9C27B0, #7B1FA2);
}

/* 金币显示 */
.character-gold {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #FFD700;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 1.2rem;
}

/* 包样式 */
.inventory-modal .inventory-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
}

.inventory-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.tab-btn.active {
    background: #FFD700;
    color: black;
}

.inventory-section {
    display: none;
}

.inventory-section.active {
    display: block;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-tip, .development-tip {
    color: #aaa;
    text-align: center;
    padding: 2rem;
}

.use-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* 移除经验条 */
.exp-bar, .exp-fill {
    display: none;
}

/* 存档对话框样式 */
.save-modal .save-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.save-content h2 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.save-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.character-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;

}

.character-preview img {
    width: 100%;
    /* height: 160px; */
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.character-preview .character-name {
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: bold;
}

.save-details p {
    color: #ccc;
    margin: 0.5rem 0;
}

.save-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.save-actions button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-btn {
    background: #4CAF50;
    color: white;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.load-btn:hover, .cancel-btn:hover {
    transform: translateY(-2px);
}

/* 商店按钮样式优化 */
.buy-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
}

.buy-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
} 